package com.bw.rjx.service.impl;

import com.bw.rjx.bean.ActivityReduceStats;
import com.bw.rjx.bean.CommodityIndicators;
import com.bw.rjx.mapper.GetDataServiceMapper;
import com.bw.rjx.service.GetDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class GetDataServiceImpl implements GetDataService {
    @Autowired
    private GetDataServiceMapper getDataServiceMapper;

    @Override
    public List<ActivityReduceStats> getActivityStats(Integer date) {
        return getDataServiceMapper.selectActivityStats(date);
    }

    @Override
    public List<CommodityIndicators> getCommodityIndicators(String shopId,String skuId,String dt) {
        return getDataServiceMapper.getCommodityIndicators(shopId, skuId, dt);
    }
}

